package cn.bdqn.tangcc.base.dao.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import javax.inject.Inject;

/**
 * Created by Administrator on 2016/5/29.
 */
public class BaseDaoImpl {
    @Inject
    private SessionFactory sessionFactory;

    public Session getSession(){
        return sessionFactory.getCurrentSession();
    }
}
